package org.bigk.invoices.actions.login;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.bigk.invoices.actions.InvoicesActionSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;


@Controller
@Namespace("/unsecured")
@Results({
	@Result(name = com.opensymphony.xwork2.Action.SUCCESS,
			type = "dispatcher",
			params = {"location", "/j_spring_security_logout" })
})
public class LogoutAction extends InvoicesActionSupport {

	private static final long serialVersionUID = 0xd421157e95b95d43L;
	
	private static final Logger logger = LoggerFactory.getLogger(LogoutAction.class);

	@Action("LogoutAction")
	public String logout() {
		logger.debug("logout() - start - end - return value=[{}]", SUCCESS);
		return SUCCESS;
	}
}
